package com.sinoeyes.agreement.mapper;


import com.sinoeyes.agreement.filter.AgreementFilter;
import com.sinoeyes.agreement.po.AgreementPo;
import com.sinoeyes.agreement.vo.AgreementQueryVO;

import java.util.List;

/**
 * 协议信息Mapper接口
 *
 * @author thse.SH
 * @date 2019-09-10
 */
public interface AgreementMapper {
    /**
     * 查询协议信息
     *
     * @param id 协议信息ID
     * @return 协议信息
     */
    AgreementPo selectAgreementById(String id);

    /**
     * 查询协议信息列表
     *
     * @param agreementFilter 协议信息
     * @return 协议信息集合
     */
//     List<AgreementPo> selectAgreementListByVo(AgreementQueryVO agreementQueryVO);

     List<AgreementQueryVO> selectAgreementList(AgreementFilter agreementFilter);

//     List<AgreementPo> selectRealAgreementList(AgreementQueryVO agreementQueryVO);

    /**
     * 新增协议信息
     *
     * @param agreementPo 协议信息
     * @return 结果
     */
     int insertAgreement(AgreementPo agreementPo);

    /**
     * 修改协议信息
     *
     * @param agreementPo 协议信息
     * @return 结果
     */
     int updateAgreement(AgreementPo agreementPo);

    /**
     * 删除协议信息
     *
     * @param id 协议信息ID
     * @return 结果
     */
     int deleteAgreementById(String id);

    /**
     * 批量删除协议信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteAgreementByIds(String[] ids);
}
